package com.example.demo.sample;

import org.springframework.context.annotation.Profile;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author void
 * @date 2021/5/18 19:29
 * @desc
 */
@Profile("simple")
@RestController
public class MainController {

    @GetMapping("/")
    public String email(){
        return "这是主页";
    }

    @GetMapping("/admin")
    public String admin(){
        return "这是admin页";
    }

    @GetMapping("/user")
    public String user(){
        return "这是user页";
    }
}
